//
//  Constant.swift
//  BarCode
//
//  Created by xxcao on 2016/12/13.
//  Copyright © 2016年 xxcao. All rights reserved.
//



import UIKit

//通知
extension Notification.Name {
    public struct CustomNotification {
        public static let DidBegin = Notification.Name(rawValue: "dream.BarCode.notification.name.customNotification.didBegin")
        
        public static let DidChange = Notification.Name(rawValue: "dream.BarCode.notification.name.customNotification.didChange")
        
        public static let DidCancel = Notification.Name(rawValue: "dream.BarCode.notification.name.customNotification.didCancel")
        
        public static let DidEnd = Notification.Name(rawValue: "dream.BarCode.notification.name.customNotification.didEnd")
        public static let ThemeChanged = Notification.Name(rawValue: "dream.BarCode.notification.name.customNotification.ThemeChanged")
    }
}

//UserDefaultsKey
enum UserDefaultsKey : String {
    case userName = "dream.BarCode.userDefaults.key.userName"
    case userPsd = "dream.BarCode.userDefaults.key.userPsd"
    case userSex = "dream.BarCode.userDefaults.key.userSex"
    case userAge = "dream.BarCode.userDefaults.key.userAge"
    case userPhone = "dream.BarCode.userDefaults.key.userPhone"
    case serverAddress = "dream.BarCode.userDefaults.key.serverAddress"
    case serverPort = "dream.BarCode.userDefaults.key.serverPort"
}

//Table name
let TABLE_TT_Project_Members = "TT_Project_Members"
let TABLE_TT_User = "TT_User"
let TABLE_TT_GlobalSetting = "globalSetting"

var serverVersion = String()
var isHasNewVersion = false
var isHasBigVersion = false

//app Version
let appVersion =  Bundle.main.infoDictionary! ["CFBundleShortVersionString"] as! String


struct Constants {
    let bundle_id = Bundle.main.bundleIdentifier
    let app_version = Bundle.main.infoDictionary?["CFBundleShortVersionString"]
    
    
}

var globalTuples:(person: String, userId: String, department: String, code: String, goodsName:String)? = ("", "", "", "", "")//

//gcd QoS优先级关系

//userInteractive > userInitiated > default > utility > background > unspecified
